#include "libutilsconfig.h"
#include "tatomint.h"
#include "threadlock.h"


#define  _THIS_GUARD  threadlock::autoguard<threadlock::multi_threaded_local> _augrad(mp_lock)
LIB_NS_BEGIN
TAtomInt::TAtomInt(const char* fname   )
{
	mp_lock = new threadlock::multi_threaded_local;
	
	_THIS_GUARD;
	m_fname = fname;
	m_fp = fopen(m_fname.c_str(),"r");
	if(m_fp == NULL)
	{
		m_curval = 0;
	}
	else
	{

		fread(m_fp,)
	}
}

TAtomInt::TAtomInt( const TCHAR * fname )
{

}

TAtomInt::~TAtomInt(void)
{
	delete mp_lock;
}

int TAtomInt::GetNext()
{

}

int TAtomInt::readfromfile()
{

}

LIB_NS_END